(function(){

'use strict';

angular.module('controllers.faultLocation.pbossOm')
  .controller('numberRecycleController', numberRecycleController);

function numberRecycleController($scope, pbossOmServer, reponsestate, requeststate, COREDATA) {

  $scope.shoumun = 0;
  $scope.numberRecycle=requeststate.numberRecycle;
  pbossOmServer.numberRecycle(
    function(res) {
      if (res.state === '10000') {
        $scope.items = res.data.pageData;
      }
    }
  );
  //查询条件参数数据类型
  $scope.provinces = COREDATA.PROVINCES;
  $scope.queryAllChannel = function() {
    $scope.shoumun == 1 ? $scope.shoumun = 0 : $scope.shoumun = 1;
    if ($scope.shoumun === 0) {
      pbossOmServer.numberRecycle(
        function(res) {
          if (res.state === '10000') {
            $scope.items = res.data.pageData;
          }
        }
      );
    }
  };


}
numberRecycleController.$inject = ['$scope', 'pbossOmServer', 'reponsestate', 'requeststate', 'COREDATA'];

})();